package com.briup.bookstore.common.model.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 实体类 - 订单项
 * @author YuYan
 * @date 2023-12-26 20:19:51
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class OrderItem {
    private Integer id;
    private String orderId;
    private Integer bookId;
    private Integer num;

    /**
     * 订单项中包含的书籍属性
     */
    private Book book;
}
